package com.ambimmort.shj.action.generalfile;

import com.ambimmort.shj.service.generalfile.Add_WebService;
import com.ambimmort.shj.service.generalfile.Del_AllService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by 师梁 on 2015/7/30.
 */
@Controller("/action/common/add_web.do")
public class Add_Web {
    @Autowired
    private Add_WebService add_webService;

    @RequestMapping("/action/common/add_web.do")
    @ResponseBody
    public  boolean del_All(
            HttpServletRequest request, @RequestParam("content") String content){
        try {
            return add_webService.add_Web(content);

        } catch (Throwable throwable) {
            throwable.printStackTrace();
            return false;
        }
    }
}
